home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ABUSESRC.ZIP / AbuseSrc / abuse / inc / server2.hpp < prev    next >
C/C++ Source or Header  |  1996-01-24  |  691b  |  29 lines

  1. #ifndef __SERVER2_HPP_
  2. #define __SERVER2_HPP_
  3. #error hi
  4.  
  5. class client_descriptor;
  6.  
  7.  
  8. class game_server
  9. {
  10.   client_descriptor *client_list;
  11.   int sync_check;
  12.   public :
  13.   game_server(int argc, char **argv, int port);
  14. //  int init_failed() { return in==NULL; }
  15.   void check_for_clients();
  16.   void receive_inputs();         // reads inputs from all non-local clients
  17.   void send_inputs();            // pass collected inputs to all non-local clients
  18.   void join_new_players();
  19.   ~game_server();
  20. } ;
  21.  
  22. extern int start_running;
  23. extern game_server *local_server;       // created on server machine, NULL on all others
  24.  
  25. void game_net_init(int argc, char **argv);
  26. #endif
  27.  
  28.  
  29.